import java.util.StringTokenizer;


class P11462_39643 {

    public static void main(String[] args) {
       
        while (true) {
            int ages = Integer.parseInt(readLn());
           
            if (ages == 0) break;
           
            int[] sorted = new int[101];
           
            StringTokenizer st = new StringTokenizer(readLn());
           
            for (int k = 0; k < ages; k++) {
                sorted[Integer.parseInt(st.nextToken())]++;
            }
           
            StringBuilder sb = new StringBuilder();
           
            for (int k = 0; k < 101; k++) {
               
                for (int j = 0; j < sorted[k]; j++) {
                    sb.append(k + " ");
                }
               
            }
           
            System.out.println(sb.toString().trim());
           
        }
       
    }
   
    static String readLn() {
        String newLine = System.getProperty("line.separator");
        StringBuilder buffer = new StringBuilder();
        int car = -1;
        try {
            car = System.in.read();
            while ((car > 0) && (car != newLine.charAt(0))) {
                buffer.append((char) car);
                car = System.in.read();
            }
            if (car == newLine.charAt(0))
                System.in.skip(newLine.length() - 1);
        } catch (java.io.IOException e) {
            return (null);
        }
        if ((car < 0) && (buffer.length() == 0))
            return (null);
        return (buffer.toString()).trim();
    }
   
   
}
